<?php

/* @var $this \yii\web\View */
/* @var $content string */

use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;


AppAsset::register($this);
?>
<?php
//echo Yii::$app->getHomeUrl();exit;
if (Yii::$app->user->isGuest && '/index.php?r=site%2Flogin'!=Yii::$app->request->getUrl()) {
    Yii::$app->getResponse()->redirect(['site/login']);
}

$this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<!--<div class="wrap">-->

<?= HTML::cssFile('@web/common/css/sccl.css') ?>
<!-- <link rel="stylesheet" href="../common/css/sccl.css"> -->
<link rel="stylesheet" type="text/css" href="../common/skin/qingxin/skin.css" id="layout-skin"/>

<div class="layout-admin">
    <header class="layout-header">
        <span class="header-logo">高品后台</span>
        <a class="header-menu-btn" href="javascript:;"><i class="icon-font">&#xe600;</i></a>
        <ul class="header-bar">
            <li class="header-bar-role"><a href="javascript:;"><?= \backend\models\Backenduser::getJiaoSe() ?></a></li>
            <li class="header-bar-nav">
                <a href="javascript:;"><?= Yii::$app->user->identity->username ?><i class="icon-font" style="margin-left:5px;">&#xe60c;</i></a>
                <ul class="header-dropdown-menu">
                    <li><a href="<? Url::to(['images/create'])  ?>">个人信息</a></li>
                    <li><a href="<?= Url::to(['site/logout'])  ?>">切换账户</a></li>
                    <li><a href="<?= Url::to(['site/logout'])  ?>">退出</a></li>
                </ul>
            </li>
            <li class="header-bar-nav">
                <a href="javascript:;" title="换肤"><i class="icon-font">&#xe608;</i></a>
                <ul class="header-dropdown-menu right dropdown-skin">
                    <li><a href="javascript:;" data-val="qingxin" title="清新">清新</a></li>
                    <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                    <li><a href="javascript:;" data-val="molv" title="墨绿">墨绿</a></li>

                </ul>
            </li>
        </ul>
    </header>
    <aside class="layout-side">
            <?= $this->render('cebian') ?>
    </aside>

    <div class="layout-side-arrow"><div class="layout-side-arrow-icon"><i class="icon-font">&#xe60d;</i></div></div>

    <section class="layout-main">
        <div class="layout-main-tab">
            <!-- <button class="tab-btn btn-left"><i class="icon-font">&#xe60e;</i></button> -->
            <!-- <nav class="tab-nav"> -->
                <!-- <div class="tab-nav-cont11ent"> -->
                <marquee>欢迎进入高品网站后台...</marquee>
                    <!-- <a href="javascript:;" class="content-tab active" data-id="home.html">首页</a> -->
                <!-- </div> -->
            <!-- </nav> -->
            <!-- <button class="tab-btn btn-right"><i class="icon-font">&#xe60f;</i></button> -->
        </div>

        <div class="layout-main-body">
        <?= Breadcrumbs::widget([
            'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
        ]) ?>
        <?= Alert::widget() ?>
        <?= $content ?>
</div>
</section>
<div class="layout-footer">@2017  lpc</div>
</div>
<!--<script type="text/javascript" src="../common/lib/jquery-1.9.0.min.js"></script>-->
<script type="text/javascript" src="../common/js/sccl.js"></script>
<script type="text/javascript" src="../common/js/sccl-util.js"></script>





<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; 高品 <?= date('Y') ?></p>

        <p class="pull-right"><?= Yii::powered() ?></p>
    </div>
</footer>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
